package com.jason.platform.supervision.activity;

import android.os.Bundle;
import android.os.Message;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import com.hzlj.supervision.changsha.R;
import com.jason.platform.supervision.widght.TitleBar;

/**
 * @ClassName: ReturningActivity
 * @Description: 电话回访
 * @Author: Jason.Zhang zhangyujn1989ok@gmail.com
 * @Date: 2015-7-25 09:48:07
 */
public class ReturningActivity extends BaseActivity implements View.OnClickListener  {

    private static final String TAG = ReturningActivity.class.getSimpleName();

    private TitleBar mTitleBar;

    //搜索
    private EditText mNameEditView,mPhoneEditView;
    private Button mSearchButton;

    //内容
    private TextView mRedressContentTextView,mTimeTextView,mReportContentTextView;

    @Override
    void handleMessage(BaseActivity activity, Message msg) {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_returning);
        super.onCreate(savedInstanceState);
        mTitleBar = (TitleBar) findViewById(R.id.title_bar);
        mTitleBar.bindActivity(this);
        initView();
        initSearchView();
    }

    private void initView(){
        mRedressContentTextView = (TextView) findViewById(R.id.returning_redress_content);
        mTimeTextView = (TextView) findViewById(R.id.returning_time);
        mReportContentTextView = (TextView) findViewById(R.id.returning_report_content);
    }

    private void initSearchView(){
        mNameEditView = (EditText) findViewById(R.id.search_header_name);
        mPhoneEditView = (EditText) findViewById(R.id.search_header_phone);
        mSearchButton = (Button) findViewById(R.id.search_header_search_btn);
        mSearchButton.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        if (v.getId() == R.id.search_header_search_btn){
            //TODO 调用接口，进行搜索
        }
    }
}
